/*
 * @Author: yanyqf
 * @Date: 2020-03-10 14:41:20
 * @LastEditTime: 2020-03-13 13:31:15
 * @Description: file content
 */
export function setTableTpl(_self) {
    const tableTpl = [
        { title: "指标编码", dataIndex: "code", key: "code", width:'10%'},
        { title: "指标名称", dataIndex: "name", key: "name", width:'15%'},
        { title: "指标单位", dataIndex: "unit", key: "unit", width:'10%'},
        {
            title: "指标值", dataIndex: "sumNum", key: "sumNum",  width:'15%',
            render(text, record, index) {

                return <div>
                    {_self.setScheduleCol('sumNum', record)}
                </div>
            }
        },
        {
            title: "来源计划名称", dataIndex: "planName", key: "planName",  width:'20%',
            render(text, record, index) {

                return <div>
                    {_self.setScheduleCol('name', record)}
                </div>
            }
        },
        {
            title: "WBS项", dataIndex: "wbsName", key: "wbsName",  width:'15%',
            render(text, record, index) {

                return (
                    <div>
                    {_self.setScheduleItemCol('name', record)}
                    </div>
                )
            }
        },
        {
            title: "WBS项指标值", dataIndex: "wbsSumNum", key: "wbsSumNum",  width:'15%',
            render(text, record, index) {
                return (
                    <div>
                    {_self.setScheduleItemCol('expectTotal', record)}
                    </div>
                )
            }
        },
    ];
    return tableTpl
}
